package com.huluobo.a2303mdmdemo.demo

import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.MotionEvent
import com.huluobo.a2303mdmdemo.R

class MyActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_my)
    }

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        Log.e("TagA", "Activity 分发:${ev?.action}")
        return super.dispatchTouchEvent(ev)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        Log.e("TagA", "Activity 消费:${event?.action}")
        return super.onTouchEvent(event)
    }
}